<template>
  <div>
    <p>params:{{$route.params}}</p>
    <p>query:{{$route.query}}</p>
  </div>
</template>

<script>
export default {
  methods: {
    toProfile () {
      this.$router.push({
        path: '/profile/' + 123
      })
    }
  }
}
</script>